import unittest
from test.commons.test_common import TestCommon
from test.model.devices.test_disk import TestDisk
from test.model.logic.software.test_instructions import TestInstrunctions
from test.commons.test_listener import TestListener
from test.model.logic.test_pcb import TestPCB


class CustomTestSuite(unittest.TestSuite):
    def addTestClass(self, cls):
        for method in dir(cls):
            if method.startswith("_test"):
                self.addTest(cls(method))




if __name__ == "__main__":
    
    suite = CustomTestSuite()
    suite.addTestClass(TestCommon)
    suite.addTestClass(TestDisk)
    suite.addTestClass(TestInstrunctions)
    suite.addTestClass(TestListener)
    suite.addTestClass(TestPCB)
    
    unittest.TextTestRunner().run(suite)



